/*
 * File: AirConditioner.h
 *
 * Code generated for Simulink model 'AirConditioner'.
 *
 * Model version                  : 1.3
 * Simulink Coder version         : 25.1 (R2025a) 21-Nov-2024
 * C/C++ source code generated on : Fri Jul 18 10:48:09 2025
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Windows64)
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef AirConditioner_h_
#define AirConditioner_h_
#ifndef AirConditioner_COMMON_INCLUDES_
#define AirConditioner_COMMON_INCLUDES_
#include "rtwtypes.h"
#include "math.h"
#endif                                 /* AirConditioner_COMMON_INCLUDES_ */

#include "AirConditioner_types.h"
#include <math.h>

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
#define rtmGetErrorStatus(rtm)         ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
#define rtmSetErrorStatus(rtm, val)    ((rtm)->errorStatus = (val))
#endif

/* Block states (default storage) for system '<Root>' */
typedef struct {
  real_T UnitDelay_DSTATE_b;           /* '<S3>/Unit Delay' */
  struct {
    void *TimePtr;
    void *DataPtr;
    void *RSimInfoPtr;
  } fromWS_Signal1_PWORK;              /* '<S2>/fromWS_Signal 1' */

  struct {
    int_T PrevIndex;
  } fromWS_Signal1_IWORK;              /* '<S2>/fromWS_Signal 1' */

  uint8_T is_active_c3_AirConditioner; /* '<Root>/AC_Enable' */
  uint8_T is_c3_AirConditioner;        /* '<Root>/AC_Enable' */
} DW_AirConditioner_T;

/* External outputs (root outports fed by signals with default storage) */
typedef struct {
  real_T temp_act;                     /* '<Root>/temp_act' */
} ExtY_AirConditioner_T;

/* Real-time Model Data Structure */
struct tag_RTM_AirConditioner_T {
  const char_T * volatile errorStatus;

  /*
   * Timing:
   * The following substructure contains information regarding
   * the timing information for the model.
   */
  struct {
    uint32_T clockTick0;
  } Timing;
};

/* Block states (default storage) */
extern DW_AirConditioner_T AirConditioner_DW;

/* External outputs (root outports fed by signals with default storage) */
extern ExtY_AirConditioner_T AirConditioner_Y;

/* Model entry point functions */
extern void AirConditioner_initialize(void);
extern void AirConditioner_step(void);
extern void AirConditioner_terminate(void);

/* Real-time Model object */
extern RT_MODEL_AirConditioner_T *const AirConditioner_M;

/*-
 * These blocks were eliminated from the model due to optimizations:
 *
 * Block '<Root>/Scope' : Unused code path elimination
 */

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'AirConditioner'
 * '<S1>'   : 'AirConditioner/AC_Enable'
 * '<S2>'   : 'AirConditioner/Signal Editor'
 * '<S3>'   : 'AirConditioner/TemperatureVariation'
 */
#endif                                 /* AirConditioner_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
